package org.example.springboot.enumClass;

import lombok.Getter;

/**
 * 借阅状态枚举
 */
@Getter
public enum BorrowStatus {
    CANCELED(0, "已取消"),
    PENDING_APPROVAL(1, "待审核"),
    BORROWING(2, "借阅中"),
    RETURNED(3, "已归还"),
    OVERDUE(4, "已逾期"),
    REJECTED(5, "审核拒绝");

    private final Integer value;
    private final String desc;

    BorrowStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
} 